package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StationMapMapper;
import com.ruoyi.system.domain.StationMap;
import com.ruoyi.system.service.IStationMapService;
import com.ruoyi.common.core.text.Convert;

/**
 * 收费站概览Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-30
 */
@Service
public class StationMapServiceImpl implements IStationMapService 
{
    @Autowired
    private StationMapMapper stationMapMapper;

    /**
     * 查询收费站概览
     * 
     * @param stationHex 收费站概览主键
     * @return 收费站概览
     */
    @Override
    public StationMap selectStationMapByStationHex(String stationHex)
    {
        return stationMapMapper.selectStationMapByStationHex(stationHex);
    }

    /**
     * 查询收费站概览列表
     * 
     * @param stationMap 收费站概览
     * @return 收费站概览
     */
    @Override
    public List<StationMap> selectStationMapList(StationMap stationMap)
    {
        return stationMapMapper.selectStationMapList(stationMap);
    }

    /**
     * 新增收费站概览
     * 
     * @param stationMap 收费站概览
     * @return 结果
     */
    @Override
    public int insertStationMap(StationMap stationMap)
    {
        return stationMapMapper.insertStationMap(stationMap);
    }

    /**
     * 修改收费站概览
     * 
     * @param stationMap 收费站概览
     * @return 结果
     */
    @Override
    public int updateStationMap(StationMap stationMap)
    {
        return stationMapMapper.updateStationMap(stationMap);
    }

    /**
     * 批量删除收费站概览
     * 
     * @param stationHexs 需要删除的收费站概览主键
     * @return 结果
     */
    @Override
    public int deleteStationMapByStationHexs(String stationHexs)
    {
        return stationMapMapper.deleteStationMapByStationHexs(Convert.toStrArray(stationHexs));
    }

    /**
     * 删除收费站概览信息
     * 
     * @param stationHex 收费站概览主键
     * @return 结果
     */
    @Override
    public int deleteStationMapByStationHex(String stationHex)
    {
        return stationMapMapper.deleteStationMapByStationHex(stationHex);
    }
}
